
**************************************************************************************************************************
*** The following code has been modified in order to use a different grouping strategy grouping, 
*		using quartiles instead of terciles
**************************************************************************************************************************
	
		maketable_t2  Trim_Income log_Income   Trim_Profits_30Days log_Profits  if  Survey_Version!=5 &  Done==1 , /// 
		spec11( Winner_Quint_Rank_NS  ) ///
		spec21( Winner_Quint_Rank_NS_quartile_4 Winner_Quint_Rank_NS_quartile_3 Winner_Quint_Rank_NS_quartile_2  ) ///
		cont($controls) ///
		table("${outtex}${date}_Returns_NoSelfRank_grouping.tex") ///
		het(Winner_Quint_Rank_NS)   ///
		type(tex) /// 
		footnote($footnote_t2_grouping ) ///
		prehead1($prehead1) prehead2($prehead2) /// 
		postheadpa("\hline \rule{0pt}{4ex} \hspace{-.16in}  \it{Panel A: Average MR Rank Value} \vspace{.05in} \\") ///
		postheadpb("\\ \hspace{-.1 in} \it{Panel B: Average MR Rank Quartile} \vspace{.05in} \\") ///
		title("Replicating Table 2 in Hussam et al. (2022b): Grouping Predictions in Quartiles instead of Terciles") label(rankmreffectfe_grouping)
	
			
/* The original code was as follows:
		maketable_t2  Trim_Income log_Income   Trim_Profits_30Days log_Profits  if  Survey_Version!=5 &  Done==1 , /// 
		spec11( Winner_Quint_Rank_NS  ) ///
		spec21( Winner_Quint_Rank_NS_Tercile_3 Winner_Quint_Rank_NS_Tercile_2  ) ///
		cont($controls) ///
		table("${outtex}${date}_Returns_NoSelfRank.tex") ///
		het(Winner_Quint_Rank_NS)   ///
		type(tex) /// 
		footnote("$footnote_s2 $footnote_d2  $footnote_o2" ) ///
		prehead1($prehead1) prehead2($prehead2) /// 
		postheadpa("\hline \rule{0pt}{3ex} \hspace{-.16in}  \it{Panel A: Average MR Rank Value} \vspace{.05in} \\") ///
		postheadpb("\\ \hspace{-.1 in} \it{Panel B: Average MR Rank Tercile} \vspace{.05in} \\") ///
		title("Do Peer Reports Predict True Marginal Returns to the Grant?") label(rankmreffectfe)
		
	*/	
